package _4策略模式.加密_解密文件;

import java.io.File;

// 上下文
public class EncodeContext {
	Strategy strategy;  // 策略接口的引用

	public void setStrategy(Strategy strategy) {this.strategy = strategy;}

	public void encryptFile(File file) {this.strategy.encryptFile(file);}

	public String decryptFile(File file) {return this.strategy.decryptFile(file);}
}
